{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li>代理认证</li>
		</ul>
		<div class="layui-tab-content">
			<form class="layui-form layui-form-pane" action="" method="get">
				<div class="layui-inline">
					<label class="layui-form-label">代理帐号</label>
					<div class="layui-input-inline">
						<input type="text" name="mobile" value="{$mobile}" placeholder="请输入手机号" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">代理名</label>
					<div class="layui-input-inline">
						<input type="text" name="agent_name" value="{$agent_name}" placeholder="请输入代理名" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<select name="status">
						<option value="0" >认证状态</option>
						<option value="1" {if $status=='1' }selected{/if}>申请审核中</option>
						<option value="2" {if $status=='2' }selected{/if}>审核通过</option>
						<option value="3" {if $status=='3' }selected{/if}>审核退回</option>
					</select>
				</div>
				<div class="layui-inline">
					<button class="layui-btn">搜索</button>
				</div>
			</form>
			<hr>
			<table class="layui-table">
				<thead>
					<tr>
						<th>代理名称</th>
						<th>代理账号</th>
						<th>开户行</th>
						<th>开户人</th>
						<th>银行卡号</th>
						<th>身份证号</th>
						<th>银行预留手机号码</th>
						<th>状态</th>
						<th>申请时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="vo"}
					<tr>
						<td>{$vo.agent_name}</td>
						<td>{$vo.mobile}</td>
						<td>{$vo.bank_name}</td>
						<td>{$vo.user_name}</td>
						<td>{$vo.bank_no}</td>
						<td>{$vo.id_number}</td>
						<td>{$vo.reserve_mobile}</td>
						<td>{if $vo.status == 1}申请审核中{elseif  $vo.status == 2 }审核通过{else /}审核退回{/if}</td>
						<td>{$vo.add_time}</td>
						<td>
							{if $vo.status != 2}
							<a href="{:url('agent_verif_sh',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-small">处理</a>
							{/if}
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
			<!--分页-->
			{$list->render()}
		</div>
	</div>
</div>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "{$controller}/agent_verif"
	};
</script>
{/block}
{block name="js"}
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#test1'
  });
   //常规用法
  laydate.render({
    elem: '#test2'
  });
})
</script>
{/block}